.class public Lcom/estrongs/io/archive/aeszip/b;
.super Les/e80;
.source "AesZipInArchive.java"


# instance fields
.field k:Lcom/estrongs/io/archive/aeszip/a;

.field l:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1, p2}, Les/e80;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 2
    iput-object p1, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    const/4 p1, 0x0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/io/archive/aeszip/b;->l:Z

    .line 4
    sget-object v0, Lcom/estrongs/android/util/f;->a:[Ljava/lang/String;

    aget-object p1, v0, p1

    invoke-virtual {p2, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    .line 5
    iput-boolean p1, p0, Lcom/estrongs/io/archive/aeszip/b;->l:Z

    .line 6
    invoke-static {}, Lcom/estrongs/android/util/f;->b()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/e80;->e:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method protected static b(Ljava/io/File;)V
    .locals 2

    if-eqz p0, :cond_1

    .line 4
    invoke-virtual {p0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1

    .line 5
    invoke-virtual {p0}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 6
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 8
    invoke-static {v0}, Lcom/estrongs/io/archive/aeszip/b;->b(Ljava/io/File;)V

    .line 9
    :cond_0
    invoke-virtual {p0}, Ljava/io/File;->mkdir()Z

    :cond_1
    return-void
.end method


# virtual methods
.method public b()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/a;->a()V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    :cond_0
    return-void
.end method

.method public c(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/FileSystemException;,
            Ljava/util/zip/DataFormatException;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Lcom/estrongs/io/model/ArchiveEntryFile;->isEncrypted()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/io/archive/aeszip/b;->f(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object p1

    return-object p1

    .line 3
    :cond_0
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/io/archive/aeszip/b;->e(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object p1

    return-object p1
.end method

.method public d(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 p1, 0x0

    return-object p1
.end method

.method public e(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;
    .locals 18
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/util/zip/DataFormatException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v2, p2

    .line 2
    invoke-virtual/range {p0 .. p2}, Les/e80;->d(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object v3

    const/4 v4, 0x0

    if-nez v3, :cond_0

    return-object v4

    .line 3
    :cond_0
    move-object/from16 v0, p1

    check-cast v0, Lcom/estrongs/io/archive/aeszip/AesZipArchiveEntryFile;

    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/AesZipArchiveEntryFile;->getArchiveEntry()Les/so0;

    move-result-object v0

    .line 4
    iget-object v5, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    if-nez v5, :cond_1

    .line 5
    invoke-virtual/range {p0 .. p0}, Lcom/estrongs/io/archive/aeszip/b;->j()V

    :cond_1
    if-eqz v0, :cond_19

    .line 6
    invoke-virtual/range {p0 .. p2}, Les/e80;->a(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object v5

    invoke-virtual {v5}, Ljava/io/File;->exists()Z

    move-result v5

    .line 7
    iget-object v6, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    invoke-virtual {v6, v0}, Lcom/estrongs/io/archive/aeszip/a;->a(Les/so0;)V

    .line 8
    iget-object v6, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v6, v6, Lcom/estrongs/io/archive/aeszip/a;->a:Les/ro0;

    .line 9
    invoke-virtual {v0}, Les/so0;->b()Les/qo0;

    move-result-object v7

    .line 10
    invoke-virtual {v7}, Les/qo0;->l()Z

    move-result v8

    if-eqz v8, :cond_18

    .line 11
    invoke-virtual {v0}, Les/so0;->f()J

    move-result-wide v8

    invoke-virtual {v7}, Les/qo0;->c()S

    move-result v10

    int-to-long v10, v10

    sub-long/2addr v8, v10

    long-to-int v9, v8

    int-to-long v10, v9

    const/16 v8, 0x10

    .line 12
    invoke-virtual {v6, v10, v11, v8}, Les/ro0;->a(JI)[B

    move-result-object v10

    add-int/2addr v9, v8

    int-to-long v8, v9

    const/4 v11, 0x2

    .line 13
    invoke-virtual {v6, v8, v9, v11}, Les/ro0;->a(JI)[B

    move-result-object v8

    .line 14
    iget-object v9, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v9, v9, Lcom/estrongs/io/archive/aeszip/a;->g:Ljava/lang/String;

    const/4 v11, 0x1

    if-eqz v9, :cond_2

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v9

    if-ge v9, v11, :cond_3

    .line 15
    :cond_2
    iget-object v9, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    invoke-interface/range {p2 .. p2}, Les/k80;->b()Ljava/lang/String;

    move-result-object v12

    iput-object v12, v9, Lcom/estrongs/io/archive/aeszip/a;->g:Ljava/lang/String;

    .line 16
    :cond_3
    invoke-interface/range {p2 .. p2}, Les/j80;->a()Z

    move-result v9

    if-nez v9, :cond_17

    iget-object v9, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    iget-object v9, v9, Lcom/estrongs/io/archive/aeszip/a;->g:Ljava/lang/String;

    if-nez v9, :cond_4

    goto/16 :goto_d

    :cond_4
    const-string v12, "UTF-8"

    .line 17
    invoke-virtual {v9, v12}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v9

    .line 18
    :try_start_0
    new-instance v12, Les/mo0;

    invoke-direct {v12, v9, v10, v8}, Les/mo0;-><init>([B[B[B)V
    :try_end_0
    .catch Ljava/util/zip/ZipException; {:try_start_0 .. :try_end_0} :catch_7

    .line 19
    new-instance v8, Ljava/io/File;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v10, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v10, "/"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v10, "_TMP.zip"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 20
    new-instance v9, Ljava/io/File;

    invoke-virtual {v8}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v9}, Lcom/estrongs/io/archive/aeszip/b;->b(Ljava/io/File;)V

    .line 21
    :try_start_1
    new-instance v9, Les/to0;

    invoke-direct {v9, v8}, Les/to0;-><init>(Ljava/io/File;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_6
    .catchall {:try_start_1 .. :try_end_1} :catchall_4

    .line 22
    :try_start_2
    new-instance v10, Les/so0;

    invoke-direct {v10, v0}, Les/so0;-><init>(Les/so0;)V

    .line 23
    invoke-virtual {v0}, Ljava/util/zip/ZipEntry;->getMethod()I

    move-result v13

    invoke-virtual {v10, v13}, Les/so0;->a(I)V

    .line 24
    invoke-virtual {v9, v10}, Les/to0;->a(Les/so0;)V

    .line 25
    invoke-virtual {v7}, Les/qo0;->i()J

    move-result-wide v13

    invoke-virtual {v6, v13, v14}, Les/ro0;->d(J)V

    .line 26
    sget v7, Lcom/estrongs/io/archive/aeszip/a;->i:I

    .line 27
    new-array v10, v7, [B

    .line 28
    invoke-virtual {v0}, Les/so0;->d()J

    move-result-wide v13

    long-to-int v0, v13

    const/4 v13, 0x0

    const/4 v14, 0x0

    :goto_0
    if-lez v0, :cond_8

    if-le v0, v7, :cond_5

    move v15, v7

    goto :goto_1

    :cond_5
    move v15, v0

    .line 29
    :goto_1
    invoke-virtual {v6, v10, v15}, Les/ro0;->a([BI)I

    move-result v11

    .line 30
    invoke-virtual {v12, v10, v11}, Les/mo0;->b([BI)V

    .line 31
    invoke-virtual {v9, v10, v13, v11}, Les/to0;->write([BII)V

    sub-int/2addr v0, v15

    add-int/2addr v14, v15

    .line 32
    invoke-interface/range {p2 .. p2}, Les/j80;->a()Z

    move-result v15
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
    .catchall {:try_start_2 .. :try_end_2} :catchall_3

    if-eqz v15, :cond_6

    move/from16 v16, v5

    const/4 v11, 0x1

    goto :goto_2

    :cond_6
    move/from16 v16, v5

    .line 33
    :try_start_3
    iget-wide v4, v1, Les/e80;->a:J

    move/from16 v17, v14

    int-to-long v13, v11

    add-long/2addr v4, v13

    iput-wide v4, v1, Les/e80;->a:J

    mul-int/lit8 v11, v7, 0x5

    move/from16 v14, v17

    if-le v14, v11, :cond_7

    .line 34
    invoke-interface {v2, v4, v5}, Les/l80;->a(J)V

    const/4 v14, 0x0

    :cond_7
    move/from16 v5, v16

    const/4 v4, 0x0

    const/4 v11, 0x1

    const/4 v13, 0x0

    goto :goto_0

    :cond_8
    move/from16 v16, v5

    const/4 v11, 0x0

    .line 35
    :goto_2
    iget-wide v4, v1, Les/e80;->a:J

    invoke-interface {v2, v4, v5}, Les/l80;->a(J)V

    .line 36
    invoke-virtual {v9}, Les/to0;->b()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_4
    .catchall {:try_start_3 .. :try_end_3} :catchall_3

    if-nez v11, :cond_a

    const/16 v0, 0xa

    :try_start_4
    new-array v4, v0, [B

    .line 37
    invoke-virtual {v6, v4, v0}, Les/ro0;->a([BI)I

    .line 38
    invoke-virtual {v12}, Les/mo0;->a()[B

    move-result-object v0

    .line 39
    invoke-static {v4, v0}, Ljava/util/Arrays;->equals([B[B)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 40
    new-instance v4, Ljava/util/zip/ZipFile;

    invoke-direct {v4, v8}, Ljava/util/zip/ZipFile;-><init>(Ljava/io/File;)V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3
    .catchall {:try_start_4 .. :try_end_4} :catchall_4

    .line 41
    :try_start_5
    invoke-virtual {v4}, Ljava/util/zip/ZipFile;->entries()Ljava/util/Enumeration;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/zip/ZipEntry;

    .line 42
    invoke-virtual {v4, v0}, Ljava/util/zip/ZipFile;->getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;

    move-result-object v5
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    .line 43
    :try_start_6
    new-instance v6, Ljava/io/FileOutputStream;

    invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v6, v0}, Ljava/io/FileOutputStream;-><init>(Ljava/lang/String;)V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1
    .catchall {:try_start_6 .. :try_end_6} :catchall_1

    .line 44
    :try_start_7
    invoke-virtual {v5, v10}, Ljava/io/InputStream;->read([B)I

    move-result v0

    :goto_3
    if-lez v0, :cond_b

    const/4 v7, 0x0

    .line 45
    invoke-virtual {v6, v10, v7, v0}, Ljava/io/FileOutputStream;->write([BII)V

    .line 46
    invoke-virtual {v5, v10}, Ljava/io/InputStream;->read([B)I

    move-result v0
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_0
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    goto :goto_3

    :catchall_0
    move-exception v0

    move-object v15, v4

    const/4 v4, 0x0

    goto/16 :goto_c

    :catch_0
    move-exception v0

    goto :goto_a

    :catchall_1
    move-exception v0

    move-object v15, v4

    const/4 v4, 0x0

    goto :goto_4

    :catch_1
    move-exception v0

    goto :goto_9

    :catchall_2
    move-exception v0

    move-object v15, v4

    const/4 v4, 0x0

    const/4 v5, 0x0

    :goto_4
    const/4 v6, 0x0

    goto :goto_c

    :catch_2
    move-exception v0

    goto :goto_8

    .line 47
    :cond_9
    :try_start_8
    new-instance v0, Ljava/util/zip/ZipException;

    const-string v4, "stored authentication (mac) value does not match calculated one"

    invoke-direct {v0, v4}, Ljava/util/zip/ZipException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_3
    .catchall {:try_start_8 .. :try_end_8} :catchall_4

    :catch_3
    move-exception v0

    goto :goto_7

    :cond_a
    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    :cond_b
    if-eqz v4, :cond_c

    .line 48
    invoke-virtual {v4}, Ljava/util/zip/ZipFile;->close()V

    :cond_c
    if-eqz v6, :cond_d

    .line 49
    invoke-virtual {v6}, Ljava/io/FileOutputStream;->close()V

    :cond_d
    if-eqz v5, :cond_e

    .line 50
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    .line 51
    :cond_e
    invoke-interface/range {p2 .. p2}, Les/j80;->a()Z

    move-result v0

    if-eqz v0, :cond_f

    .line 52
    invoke-virtual {v3}, Ljava/io/File;->delete()Z

    const/4 v3, 0x0

    .line 53
    :cond_f
    invoke-virtual {v8}, Ljava/io/File;->delete()Z

    return-object v3

    :catch_4
    move-exception v0

    goto :goto_5

    :catchall_3
    move-exception v0

    move-object v4, v9

    goto :goto_6

    :catch_5
    move-exception v0

    move/from16 v16, v5

    :goto_5
    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    goto :goto_b

    :catchall_4
    move-exception v0

    const/4 v4, 0x0

    :goto_6
    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v15, 0x0

    goto :goto_c

    :catch_6
    move-exception v0

    move/from16 v16, v5

    :goto_7
    const/4 v4, 0x0

    :goto_8
    const/4 v5, 0x0

    :goto_9
    const/4 v6, 0x0

    :goto_a
    const/4 v9, 0x0

    .line 54
    :goto_b
    :try_start_9
    invoke-virtual {v8}, Ljava/io/File;->delete()Z

    if-nez v16, :cond_10

    .line 55
    invoke-virtual {v3}, Ljava/io/File;->delete()Z
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_6

    .line 56
    :cond_10
    :try_start_a
    throw v0
    :try_end_a
    .catchall {:try_start_a .. :try_end_a} :catchall_5

    :catchall_5
    move-exception v0

    move-object v15, v4

    move-object v4, v9

    const/4 v3, 0x0

    goto :goto_c

    :catchall_6
    move-exception v0

    move-object v15, v4

    move-object v4, v9

    :goto_c
    if-eqz v4, :cond_11

    .line 57
    invoke-virtual {v4}, Les/to0;->close()V

    :cond_11
    if-eqz v15, :cond_12

    .line 58
    invoke-virtual {v15}, Ljava/util/zip/ZipFile;->close()V

    :cond_12
    if-eqz v6, :cond_13

    .line 59
    invoke-virtual {v6}, Ljava/io/FileOutputStream;->close()V

    :cond_13
    if-eqz v5, :cond_14

    .line 60
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    .line 61
    :cond_14
    invoke-interface/range {p2 .. p2}, Les/j80;->a()Z

    move-result v2

    if-eqz v2, :cond_15

    .line 62
    invoke-virtual {v3}, Ljava/io/File;->delete()Z

    .line 63
    :cond_15
    throw v0

    :catch_7
    move-exception v0

    .line 64
    invoke-virtual {v0}, Ljava/util/zip/ZipException;->getMessage()Ljava/lang/String;

    move-result-object v2

    const-string v3, "WRONG PASSWORD"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_16

    .line 65
    iget-object v2, v1, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    const/4 v3, 0x0

    iput-object v3, v2, Lcom/estrongs/io/archive/aeszip/a;->g:Ljava/lang/String;

    .line 66
    :cond_16
    throw v0

    :cond_17
    :goto_d
    move-object v3, v4

    return-object v3

    .line 67
    :cond_18
    new-instance v0, Ljava/util/zip/ZipException;

    const-string v2, "only AES encrypted files are supported"

    invoke-direct {v0, v2}, Ljava/util/zip/ZipException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 68
    :cond_19
    new-instance v0, Ljava/io/IOException;

    const-string v2, "IllegalArgument - Archive Entry is NULL"

    invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    goto :goto_f

    :goto_e
    throw v0

    :goto_f
    goto :goto_e
.end method

.method protected e()Ljava/util/Iterator;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Iterator<",
            "Lcom/estrongs/io/model/ArchiveEntryFile;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/estrongs/io/archive/aeszip/b$b;

    invoke-direct {v0, p0}, Lcom/estrongs/io/archive/aeszip/b$b;-><init>(Lcom/estrongs/io/archive/aeszip/b;)V

    return-object v0
.end method

.method public f(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;
    .locals 9
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1, p2}, Les/e80;->a(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    .line 2
    invoke-virtual {p0, p1, p2}, Les/e80;->d(Lcom/estrongs/io/model/ArchiveEntryFile;Les/k80;)Ljava/io/File;

    move-result-object v1

    const/4 v2, 0x0

    if-nez v1, :cond_0

    return-object v2

    .line 3
    :cond_0
    check-cast p1, Lcom/estrongs/io/archive/aeszip/AesZipArchiveEntryFile;

    invoke-virtual {p1}, Lcom/estrongs/io/archive/aeszip/AesZipArchiveEntryFile;->getArchiveEntry()Les/so0;

    move-result-object p1

    .line 4
    :try_start_0
    iget-object v3, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    if-nez v3, :cond_1

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/io/archive/aeszip/b;->j()V

    :cond_1
    if-eqz p1, :cond_6

    .line 6
    iget-object v3, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4, p2}, Lcom/estrongs/io/archive/aeszip/a;->a(Ljava/lang/String;Les/k80;)Ljava/io/InputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v3, :cond_3

    .line 7
    :try_start_1
    invoke-interface {p2}, Les/j80;->a()Z

    move-result v4

    if-nez v4, :cond_3

    .line 8
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/estrongs/fs/impl/local/f;->g(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v2

    .line 9
    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getSize()J

    move-result-wide v4

    invoke-static {v4, v5}, Lcom/estrongs/io/archive/aeszip/a;->a(J)I

    move-result p1

    new-array p1, p1, [B

    .line 10
    :goto_0
    invoke-virtual {v3, p1}, Ljava/io/InputStream;->read([B)I

    move-result v4

    if-lez v4, :cond_3

    const/4 v5, 0x0

    .line 11
    invoke-virtual {v2, p1, v5, v4}, Ljava/io/OutputStream;->write([BII)V

    .line 12
    invoke-interface {p2}, Les/j80;->a()Z

    move-result v5

    if-eqz v5, :cond_2

    goto :goto_1

    .line 13
    :cond_2
    iget-wide v5, p0, Les/e80;->a:J

    int-to-long v7, v4

    add-long/2addr v5, v7

    iput-wide v5, p0, Les/e80;->a:J

    .line 14
    invoke-interface {p2, v5, v6}, Les/l80;->a(J)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    goto :goto_0

    :catch_0
    move-exception p1

    goto :goto_2

    :cond_3
    :goto_1
    if-eqz v2, :cond_4

    .line 15
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 16
    :cond_4
    invoke-interface {p2}, Les/j80;->a()Z

    move-result p1

    if-eqz p1, :cond_5

    if-eqz v3, :cond_5

    .line 17
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    :cond_5
    return-object v1

    .line 18
    :cond_6
    :try_start_2
    new-instance p1, Ljava/io/IOException;

    const-string v3, "IllegalArgument - Archive Entry is NULL"

    invoke-direct {p1, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :catchall_0
    move-exception p1

    move-object v3, v2

    goto :goto_3

    :catch_1
    move-exception p1

    move-object v3, v2

    :goto_2
    if-nez v0, :cond_7

    .line 19
    :try_start_3
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 20
    :cond_7
    throw p1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :catchall_1
    move-exception p1

    :goto_3
    if-eqz v2, :cond_8

    .line 21
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 22
    :cond_8
    invoke-interface {p2}, Les/j80;->a()Z

    move-result p2

    if-eqz p2, :cond_9

    if-eqz v3, :cond_9

    .line 23
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 24
    :cond_9
    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public i()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public j()V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    new-instance v0, Lcom/estrongs/io/archive/aeszip/a;

    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Les/e80;->d:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Les/e80;->e:Ljava/lang/String;

    iget-boolean v3, p0, Lcom/estrongs/io/archive/aeszip/b;->l:Z

    new-instance v4, Lcom/estrongs/io/archive/aeszip/b$a;

    invoke-direct {v4, p0}, Lcom/estrongs/io/archive/aeszip/b$a;-><init>(Lcom/estrongs/io/archive/aeszip/b;)V

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/estrongs/io/archive/aeszip/a;-><init>(Ljava/io/File;Ljava/lang/String;ZLcom/estrongs/io/archive/aeszip/a$a;)V

    iput-object v0, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    return-void
.end method

.method public l()Lcom/estrongs/io/archive/aeszip/a;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/b;->k:Lcom/estrongs/io/archive/aeszip/a;

    return-object v0
.end method
